#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'syxbyi'
__version__ = '1.0.0'

import os
from os.path import join, dirname

def main():
    print('>>> Copying vimrc')
    files = ['vimrcVundle', 
            'vimrcBasis', 
            'vimrcExecute', 
            'vimrcKeyMapping',
            'vimrcTemplates',
            'vimrcMarkdown', 
            ]
    content = ''
    for f in files:
        src = join(dirname(__file__), f)
        with open(src, 'r') as f:
            content += f.read()
    dst = join(os.environ['HOME'], '.vimrc')
    with open(dst, 'w') as f:
        f.write(content)
    print('--- Done')
    return

if __name__ == '__main__':
    main()

